<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: lxf
  Date: 2017/2/17
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<html>
<head>
    <title>加班记录</title>
    <link type="text/css" rel="stylesheet" href="/static/bootstrap/css/bootstrap-datetimepicker.css">
    <script src="/static/bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
    <script src="/static/bootstrap/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
</head>
<body>
<div>
    <form:form commandName="workOverTimeDTO" method="post" action="/work/add">
        <form:hidden path="guid"/>
        <table>
            <tbody>
            <tr>
                <td>开始时间:</td>
                <td><form:input path="startTime" date-date-format="yyyy-mm-dd hh:ii" id="startTime" readonly="true" cssClass="form_datetime"/></td>
            </tr>
            <tr>
                <td>结束时间:</td>
                <td><form:input path="endTime" date-date-format="yyyy-mm-dd hh:ii" id="endTime" readonly="true" cssClass="form_datetime"/></td>
            </tr>
            <tr>
                <td>类型:</td>
                <td>
                    <form:radiobuttons path="workType" items="${workOverTimeDTO.workTypeEnums}"/>
                </td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><form:input path="remark"/></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="submit" class="btn btn-primary"></td>
            </tr>
            </tbody>
        </table>
    </form:form>
</div>
<myScript>
    <script type="text/javascript">
        $("#startTime").datetimepicker({
            language: 'zh-CN',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 1
        });
        $("#endTime").datetimepicker({
            language: 'zh-CN',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 1
        });
    </script>
</myScript>
</body>
</html>
